﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ARS.Control.Custom.Entity.Attributes;
using ARS.Control.Custom.Entity.Fields;

namespace NetWebControl.ControlTest
{

    internal class ums_rolepermins
    {
        [KeyField]
        public int Id
        {
            get;
            set;
        }
        [ForeignKeyField(Verbose_Name = "角色")]
        [ForeignKeyConfig(TableName = "ums_role", DataValueField = "Id", DataTextField = "UMS_RoleName", KeyField = "Id")]
        public int UMS_RoleId
        {
            get;
            set;
        }
        [ForeignKeyField(Verbose_Name = "权限")]
        [ForeignKeyConfig(TableName = "ums_permins", DataValueField = "Id", DataTextField = "UMS_Perminssion", KeyField = "Id")]
        public int UMS_PerminsId
        {
            get;
            set;
        }
        [CharValidateField(Verbose_Name = "aa", RegexStr = "^(-?\\d+)(\\.\\d+)?$", Tip = "匹配浮点数")]
        public string Name
        {
            get;
            set;
        }
    }

    public partial class addupdatemany : System.Web.UI.Page
    {
        private ums_rolepermins rp = new ums_rolepermins();
        protected void Page_Load(object sender, EventArgs e)
        {
            this.EntityModifyPanel1.Entity = rp;
        }
    }
}